<?php
// +----------------------------------------------------------------------
// | Qbt CMS Plugin
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.qbt8.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 千佰特 <http://www.qbt8.com>
// +----------------------------------------------------------------------
namespace plugins\qbt_page_content_filter\model;//Demo插件英文名，改成你的插件英文就行了
use think\Model;

class ViewModel extends Model{
    protected $name = 'view_filter';

    public function data_list(){
        return $this->select()->toArray();
    }

    public function data_info($where){
        return $this->where($where)->find();
    }

    public function add_data($data){
        return $this->insertGetId($data);
    }

    public function update_data($where,$data){
        return $this->where($where)->update($data);
    }

    public function del_data($where){
        return $this->where($where)->delete();
    }
}
